package com.waya.demo.aop.staticAop;
/**
 * 代理对象
 * @author 
 *
 */
public class PersonProxy implements PersonInterface{
	
	private PersonInterface person;

	public PersonProxy(PersonInterface person) {
        this.person = person;
    }
 
    @Override
    public void printName(String name) {
        System.out.println("每一个person类都应该输出其名字");
        person.printName(name);
    }


}
